/*	Structure of a fontlibrary :
 *	+---------------------------------------+
 *	|   magic number		4 Bytes	            |
 *	|   number of direntries	4 Bytes	      |
 *	|   [flib_dirent]*			                |
 *	|   [modules]*				                  |
 *	+---------------------------------------+
 */



/* important constants */
#define OLD_LIBMAGIC	(0xA797F033L)		/* magic number */
#define LIBMAGIC	(((long)'F'<<24) | ((long)'L'<<16) | ((long)'I'<<8) | (long)'B')
#define LNKMAGIC	(((long)'F'<<24) | ((long)'L'<<16) | ((long)'N'<<8) | (long)'K')
#define NEWFILENAMELEN	(22)

/************ structure definitions ***************/
/* fontlib directory structures */

typedef struct
{
	char						mname[NEWFILENAMELEN];	/* new version */
	unsigned short	checksum;
	long  					size;		/* size of pk-module in bytes */
	long						where;	/* position in flib-file */
} direntry;


